<?php
require_once "filter.php";
require_once "Connection.php";
session_start();

$conn = new Connection();

$data = $conn->renameTitle($_POST['category_id'],$_POST['sub_category_id'],$_POST['new_title']);

if($data['update_status']){
	echo $data['new_title'];
}
else{
	echo '更新失敗！';
}

?>